package com.paic.mhis.hcpms.common.base.util;

/**
 * @Description 常量类
 * @author
 * @date 2015/01/01
 */

public abstract class BaseConstants {

	public static final String IS_VALID = "0";

	public static final String IS_NOT_VALID = "1";

	public static final String PROBLEM_PREFIX = "SJ";

	public static final int USER_INVALID_ERROR_CODE = 600; // 用户名失效错误码

	public static final int ACION_INVALID_ERROR_CODE = 601; // 用户没有权限错误码

	public static final String COMMON_CODE_URL = "/hcpms/common/code"; // 公用资源获取URL
	public static final String GET_MENUS_URL = "/hcpms/login/principal"; // 菜单获取URL

	public static final String PLUS_PATTERN = "^+?[0-9][0-9]*$"; // 正整数格式

	public static final String NOT_MINUS_PATTERN = "^?[0-9][0-9]*$"; // 非负整数格式

	// 公用常量
	public static final String STATE_KEY = "state"; // 返回成功或失败的标志

	public static final String MENU = "menu"; // 菜单

	public static final String SYSTEM_MANAGE_MENU = "menu0006"; // 系统管理菜单

	public static final String VALIDATE_ERRORS_KEY = "errors"; // 校验错误信息标志

	public static final String MSG_KEY = "msg"; // 返回消息标志

	public static final String SUCCESS_RESULT_KEY = "result"; // 返回成功的结果

	public static final String CODE_NAME_KEY = "codeName"; // 返回成功的结果

	public static final String TOTAL_KEY = "totals"; // 返回总记录数的标志

	public static final String SUCCESS_STATE_VALUE = "0"; // 返回状态成功的值

	public static final String FAILED_VALIDATE_STATE_VALUE = "1"; // 返回校验失败的值

	public static final String FAILED_STATE_VALUE = "2"; // 返回数据库异常失败的值

	public static final String REQUEST_PARAMETER_ERROR_STATE_VALUE = "3"; // http请求数据错误

	public static final String SYS_ERROR = "系统繁忙，请稍候重试！"; // 返回异常信息

	public static final String CONVERT_ERROR = "格式转换错误！"; // 返回异常信息

	public static final String OPERATE_SUCCESS = "操作成功!"; // 操作成功

	public static final String OPERATE_FAILED = "操作失败!"; // 操作失败

	public static final String UPLOAD_SUCCESS = "上传成功!"; // 上传成功

	public static final String UPLOAD_FAILED = "上传失败!"; // 上传失败

	public static final String SELECT_SUCCESS = "查询成功！"; // 返回查询成功的值

	public static final String SELECT_FAILED = "查询失败！"; // 返回查询失败的值

	public static final String UPDATE_SUCCESS = "修改成功！"; // 返回修改成功的值

	public static final String UPDATE_FAILED = "修改失败！";

	public static final String DELETE_SUCCESS = "删除成功！"; // 返回逻辑删除成功的值

	public static final String DELETE_FAILED = "删除失败！";

	public static final String REFRESH_SUCCESS = "更新成功！";

	public static final String REFRESH_FAILED = "更新失败！";

	public static final String INSERT_SUCCESS = "添加成功！"; // 返回添加成功的值

	public static final String SAVE_OR_UPDATE_SUCCESS = "保存成功！"; // 返回添加成功的值

	public static final String SAVE_OR_UPDATE_FAILED = "保存失败！"; // 返回添加失败的值

	public static final String MSG_DATABASE_EXCEPTION = "系统访问数据库出错了，请联系管理员！"; // 返回数据库异常失败的值

	public static final String MSG_ACCESS_DATABASE_EXCEPTION = "数据库访问异常！"; // 返回数据库异常失败的值

	public static final String MSG_REQUEST_PARAMETER_ERROR = "访问系统的参数出错，请联系管理员！"; // 返回请求参数错误的值

	public static final String SUBMIT_SUCCESS = "提交成功！"; // 提交成功！

	public static final String SUBMIT_FAILED = "提交失败！";

	public static final String VALIDATE_FAILED_MSG = "校验失败！";

	public static final String DISTRIBUT_SUCCESS = "分配成功";

	public static final String DISTRIBUT_FAILED = "分配失败";

	public static final String PAGE_VALIDATE_FAILED_MSG = "page或pageSize必须为正整数！";

	public static final String PASSWORD_REQURE_ENCODE_MSG = "密码需要加密！";

	public static final String MONITOR_USER = "gmoniuser"; // 监控用户名 gmoniuser

	public static final String MSG_ACCESS_UM_EXCEPTION = "根据用户名获取姓名失败！";
	public static final String MSG_ACCESS_REGION_EXCEPTION = "根据用户名获取地区失败！";
	public static final String MSG_ACCESS_USER_EXCEPTION = "根据角色获取用户失败！";
	public static final String MSG_ACCESS_ROLE_EXCEPTION = "根据用户获取角色失败！";

	public static final String MSG_NO_UM_AUTH_EXCEPTION = "当前用户没有角色，请联系系统管理员！";

	/*
	 * 判断操作是否成功(默认成功)
	 */
	public static final String FLAG_TURE = "true";

	public static final String FLAG_FALSE = "false";

	public static final String ZCMSG = "暂存成功！";
	/*
	 * 录入稽核结果得需先录入稽核告知函
	 */
	public static final String AUDITMSG = "请录入稽核告知函！";

}
